﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WithoutStateDemo1
{
    /// <summary>
    /// 电梯接口
    /// </summary>
    interface ILift
    {
        /// <summary>
        /// 状态
        /// </summary>
        Status Status
        {
            get;
            set;
        }
        /// <summary>
        /// 电梯门开启
        /// </summary>
        void Open();
        /// <summary>
        /// 电梯门关闭
        /// </summary>
        void Close();
        /// <summary>
        /// 电梯要能运行
        /// </summary>
        void Run();
        /// <summary>
        /// 电梯要能停止
        /// </summary>
        void Stop();
    }
}
